home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #1 / Ham Radio 2000.iso / ham2000 / hf / dsp / dsp4src / macros.asm < prev    next >
Encoding:
Assembly Source File  |  1993-02-14  |  1.3 KB  |  43 lines

  1. ;***************************************************************
  2. ;* MACROS.ASM -- General Purpose Macros                *
  3. ;*                                   *
  4. ;* Copyright (C) 1990-1992  by Alef Null. All rights reserved. *
  5. ;* Author(s): Jarkko Vuori, OH2LNS                   *
  6. ;* Modification(s):                           *
  7. ;***************************************************************
  8.  
  9. ;********************
  10. ;*  Useful macros   *
  11. ;********************
  12.  
  13. ; macro for immediate move
  14. movi    macro    data,dest
  15.     move            #data,a1
  16.     move            a1,dest
  17.     endm
  18. movib    macro    data,dest
  19.     move            #data,b1
  20.     move            b1,dest
  21.     endm
  22.  
  23.  
  24. ;********************
  25. ;*    Global LPC    *
  26. ;* codec parameters *
  27. ;********************
  28.  
  29. N    equ    240                    ; window size
  30. M    equ    160                    ; frame size
  31. P    equ    10                    ; number of LPC coefficients
  32. voiced    equ    6                    ; confidence threshold for voicing
  33. boost    equ    3                    ; gain boosting for unvoiced sounds
  34. monopit equ    70                    ; constant pitch in monotonic mode
  35. filter    equ    79                    ; filter lenght for Gold-Rabiner low-pass
  36. poly    equ    $10800                    ; random number generator polynomial (x^17 + x^12 + 1)
  37.  
  38. whisper equ    0                    ; whisper mode flag bit
  39. silence equ    1                    ; silence flag bit
  40. loopb    equ    2                    ; loopback mode flag bit
  41. monot    equ    3                    ; monotone mode flag bit
  42. ipolate equ    8                    ; interpolate flag (for synthesis part only)
  43.